import { getMemberlist } from '@/request/huiyuan'
export default {
    namespaced: true,
    state() {
        return {
            memberlist: []
        }
    },
    getters: {
        getMemberlist: state => state.memberlist
    },
    mutations: {
        MEMBERLIST: (state, data) => {
            state.memberlist = data
        }
    },
    actions: {
        async GetMemberlist({ commit }, data) {
            // commit
            let rst = await getMemberlist(data)
            commit('MEMBERLIST', rst.list)
        }
    }

}